package com.hzb.service.impl;

import com.hzb.dao.UserDao;
import com.hzb.entity.User;
import com.hzb.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * 功能描述
 *
 * @author 和振斌
 * @date 2020/7/31
 * @return
 */
@Service
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;
    @Override
    @Transactional(propagation = Propagation.SUPPORTS)
    public User login(User user) {
        return userDao.Login(user);
    }
}
